<!DOCTYPE html>
<html lang="zh-hans">{% load i18n static %}
<head>
    <title>{% block title %} Taste Room {% endblock %}</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link href="{% static 'oa/bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'oa/bootstrap-datepicker/css/bootstrap-datepicker.min.css' %}" rel="stylesheet">
    <link href="{% static 'oa/table-responsive.css' %}" rel="stylesheet">
    <!-- 自定义 CSS 文件 -->
    <link href="{% static 'oa/basic-style.css' %}" rel="stylesheet">
    <!-- 其他 CSS 文件 -->
    {% block this_css %} {% endblock %}
</head>
<body>
{% block header_nav %}
<nav class="navbar navbar-inverse" role="navigation" style="border-radius: 0;">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse"
                    data-target="#example-navbar-collapse">
                <span class="sr-only">切换导航</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/page/">Taste Room</a>
        </div>
        <div class="collapse navbar-collapse" id="example-navbar-collapse">
            <ul class="nav navbar-nav">
                {% if perms.oa.view_productsalesprice %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">产品信息<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/page/products/">产品参数信息</a></li>
                            <li><a href="/page/product_price_list/?sales_channel_type=1">线下渠道价格</a></li>
                            <li><a href="/page/product_price_list/?sales_channel_type=2">线上渠道价格</a></li>
                            <li><a href="/page/product_price_list/?sales_channel_type=3">经销渠道价格</a></li>{% if request.user.is_staff %}
                            <li><a href="/page/keg_problems/?code=cbwi2cqevq1eivi3qevbe">坏桶统计</a></li>{% endif %}
                        </ul>
                    </li>
                    {% endif %}
                {% if request.user.is_staff %}
                    {% if perms.oa.view_productbatch %}
                        <li><a href="/page/tank_state_list/">发酵罐状态</a></li>
                    {% endif %}
                    {% if perms.oa.view_moneyinout %}
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">数据统计<b class="caret"></b></a>
                        <ul class="dropdown-menu">
                            <li><a href="/page/product_batch_cost_list/">生产成本统计</a></li>
                            <li><a href="/page/product_batch_material_list/">产品原料明细</a></li>
                            <li><a href="/page/material_in_list/">原料入库明细</a></li>
                            <li><a href="/page/material_purchase_list/">原料采购明细</a></li>
                            <li><a href="/page/material_batch_list/" target="_blank">原料库存明细</a></li>{% if perms.approval.view_application %}
                            <li><a href="/page/approval/cost_profit/">部门费用统计</a></li>
                            <li><a href="/page/analysis/department_sales_statistic/">部门销售统计</a></li>{% endif %}
                        </ul>
                    </li>
                    {% endif %}
                    <li><a href="/wiki/" target="_blank">Wiki</a></li>
                    <li><a href="/ht/" target="_blank">管理系统</a></li>
                {% endif %}
                    {% if perms.approval.view_application %}
                <li><a href="/page/approval/applications/">报销申请</a></li>{% endif %}
                {% if perms.sop.view_sopdocument %}
                <li><a href="/page/sop/sop_docs/">体系文件</a></li>{% endif %}
            </ul>
        </div>
    </div>
</nav>
{% endblock %}
{% block content %} {% endblock %}
</body>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="{% static 'oa/jquery.min.js' %}"></script>
    <script src="{% static 'oa/bootstrap.min.js' %}"></script>
    <script src="{% static 'oa/moment-with-locales.js' %}"></script>
    <script src="{% static 'oa/bootstrap-datepicker/js/bootstrap-datepicker.min.js' %}"></script>
    <script src="{% static 'oa/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js' %}"></script>
{% block this_js %} {% endblock %}
</html>